#include "Pixel.h"

unsigned char getR(Pixel pix)
{
    return(pix.r);
}

unsigned char getG(Pixel pix)
{
    return(pix.g);
}

unsigned char getB(Pixel pix)
{
    return(pix.b);
}

void setR(Pixel *pix, unsigned char r)
{
    pix->r=r; /*On utilise -> car pix est un pointeur sur un structure de type Pixel*/
}

void setG(Pixel *pix, unsigned char g)
{
    pix->g=g;
}

void setB(Pixel *pix, unsigned char b)
{
    pix->b=b;
}
